#ifndef __MYMATH_
#define __MYMATH_

#include <cfenv>
#include <cmath>

double addUp(double a, double b);
double addDown(double a, double b);

double subUp(double a, double b);
double subDown(double a, double b);

double mulUp(double a, double b);
double mulDown(double a, double b);

double divUp(double a, double b);
double divDown(double a, double b);

double sqrtUp(double x);
double sqrtDown(double x);

double sinUp(double x);
double sinDown(double x);

double cosUp(double x);
double cosDown(double x);

double tanUp(double x);
double tanDown(double x);

double logUp(double x);
double logDown(double x);


int mygcd(int a, int b);
int mylcm(int a, int b);

#endif

